import request from '@/utils/request'

export const captcha = key => request.get(`/manager/captcha?key=${key}`, { responseType: 'blob' })

// export const login = data => request.post('/manager/login', data)

export const login = data => request.post('/manager/login', data)

export const hall = () => request.get(`/manager/business-hall/tree`)

export const businessHall = data => request.get(`/manager/business-hall/${data}`)

export const hallid = id => request.get(`/manager/business-hall/${id}`)
// manager / business - hall / { id }

export const findByAgencyId = params => request.get(`/manager/business-hall/user/page`, {
  params
})

export const workspace = () => request.get(`/manager/workspace`)
